#!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2021/9/17 14:35
# @Author : lenovo
# @Email : 26541796406@qq.com
# @File : MRYX_SEARCH_001.py
# @Project : mryx_test
"""验证进入新增地址页面"""
from appium import webdriver
from time import sleep
from appium.webdriver.common.mobileby import MobileBy as By
desired_capabilites = {
    "platformName":"Android",
    "deviceName":"5ENDU19222007479",
    "platformVersion":"10",
    "appPackage":"cn.missfresh.application",
    "appActivity":"cn.missfresh.module.main.view.SplashActivity",
    "noReset":True,
    "resetKeyboard":True
}
driver = webdriver.Remote('http://localhost:4723/wd/hub',desired_capabilites)
sleep(2)
driver.find_element(By.ID,'cn.missfresh.application:id/address_tv').click()   # 点击定位
sleep(1)
driver.find_element(By.ID,'cn.missfresh.application:id/tv_title_bar_right_txt').click()  # 点击新增地址
